import request from '@/utils/request'

// 添加备注
export function addRemark(remark) {
  return request({
    url: '/remark/add',
    method: 'POST',
    params: {
      remarkSendId: remark.sendId,
      remarkInfo: remark.remarkInfo
    }
  })
}

// 删除备注
export function deleteRemark(remark) {
  return request({
    url: '/remark/del',
    method: 'DELETE',
    params: {
      remarkId: remark.remarkId
    }
  })
}

// 修改备注
export function updateRemark(remark) {
  return request({
    url: '/remark/update',
    method: 'PUT',
    params: {
      remarkId: remark.remarkId,
      remarkSendId: remark.sendId,
      remarkInfo: remark.remarkInfo
    }
  })
}

// 根据sendId查找备注
export function getRemarkBysendId(remark) {
  return request({
    url: '/remark/getBySendId',
    method: 'GET',
    params: {
      sendId: remark.sendId
    }
  })
}
